package view.component.progressbar
{
import flash.display.DisplayObject;

import framework.view.components.Component;

public class ActionBar extends Component implements IActionBar
{
	//==========================================================================
	//  Constructor
	//==========================================================================
	public function ActionBar()
	{
		super();
	}
	//==========================================================================
	//  Properties
	//==========================================================================
	public function get  bar():IActionBarProxy
	{
		return proxys["bar"];
	}
	//==========================================================================
	//  Overridden methods: Component
	//==========================================================================
	override protected function get skinReference():String
	{
		return "swf.ui.ActionBarSkin";
	}
	
	override protected function get proxyMapping():Array
	{
		return [ 
			{ skin:"", classRef: ActionBarProxy, id:"bar" }
		];
	}
	
	public function set data(value:*):void
	{
		bar.data = value;
	}
	
	public function get data():*
	{
		return bar.data;
	}
	
	public function set onStart(value:Function):void
	{
		bar.onStart = value;
	}
	
	public function get onStart():Function
	{
		return bar.onStart;
	}
	
	public function set onUpdate(value:Function):void
	{
		bar.onUpdate = value;
	}
	
	public function get onUpdate():Function
	{
		return bar.onUpdate;
	}
	
	public function set onComplete(value:Function):void
	{
		bar.onComplete = value;
	}
	
	public function get onComplete():Function
	{
		return bar.onComplete;
	}
	
	public function get displayObject():DisplayObject
	{
		return this;
	}
	
	public function start():void
	{
		bar.start();
	}
	
	public function stop():void
	{
		bar.stop();
	}
}
}